package com.sh.java核心技术卷1.three继承;

/**
 * @Auther: sh
 * @Version 1.0
 * @Description:
 */
public class Father {
    private String name;
    private String age;
    private String address = "湖南";

    public Father() {
        System.out.println("父类的无参构造");
    }

    public void speak(){
        System.out.println("这是父类的speak");
    }
    public Father(String name, String age, String address) {
        this.name = name;
        this.age = age;
        this.address = address;
    }

    public Father(String name, String age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}

